package com.example.survey23.controller;


import com.example.survey23.entity.AnswerBankMultiple;
import com.example.survey23.service.AnswerBankMultipleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 23Group
 * @since 2022-11-10
 */
@RestController
@RequestMapping("/answer-bank-multiple")
public class AnswerBankMultipleController {
    @Autowired
    AnswerBankMultipleService answerBankMultipleService;
    public void save(AnswerBankMultiple answerBankMultiple){
        answerBankMultipleService.save(answerBankMultiple);
    }

    public int getMaxMId(){
       return answerBankMultipleService.getMaxMId();
    }
}
